package actionScripts.business
{
	import actionScripts.vo.UserDetail;
	
	import mx.rpc.IResponder;

	public class AdminDelegates
	{
		//---------------------
		//	PRIVATE VARIABLES
		//---------------------
		private var _responder		: IResponder;
		private var _service		: Object;
		private var adminService	: SingletonService;
		
		
		public function AdminDelegates(responder:IResponder){
			adminService = SingletonService.getInstance();
			_responder = responder;
		}
		public function getAllUsers() : void {
			_service   = adminService.LARemoteService;
			var call : Object = _service.getAllUsers( );
			call.addResponder( _responder );
		}
		public function getUsers(userName:String,firstName:String,lastName:String,email:String) : void {
			_service   = adminService.LARemoteService;
			var call : Object = _service.getUsers(userName,firstName,lastName,email );
			call.addResponder( _responder );
		}
		public function getUserDetail(userId:Number) : void {
			_service   = adminService.LARemoteService;
			var call : Object = _service.getUserDetail(userId );
			call.addResponder( _responder );
		}
		public function checkUserNameAvailiablity( arg1:String ) : void {
			_service   = adminService.LARemoteService;
			var call : Object = _service.checkUserNameAvailiablity( arg1);
			call.addResponder( _responder );
		}
		public function updateUserDetail( usrDetail:UserDetail) : void {
			_service   = adminService.LARemoteService;
			var call : Object = _service.updateUserDetail( usrDetail);
			call.addResponder( _responder );
		}
	}
}